package com.kos.backend.controller.user.snake;


import com.kos.backend.pojo.Snake;
import com.kos.backend.service.user.snake.QueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class QueryController {

    @Autowired
    private QueryService queryService;

    @GetMapping("/user/snake/query")
    public List<Snake> query(){
        return queryService.query();
    }
}
